//
//  HJDiscoverTableViewController.swift
//  WeiBo
//
//  Created by 韩俊 on 15/12/5.
//  Copyright © 2015年 HanJun. All rights reserved.
//

import UIKit

class HJDiscoverTableViewController: HJBasicTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        if !userLogin {
            visitorView?.setVisitorInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }

        
        setupUI()
    }
    
    
    private func setupUI() {
        
        let searchView = HJDiscoverSearchView.searchView()
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        navigationItem.titleView = searchView
        
        tabBarItem.badgeValue = "11"
        
        
    
    }

}
